package com.example.appointment.repository;

import com.example.appointment.entity.Department;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentRepository extends JpaRepository<Department, Long> {
    boolean existsByName(String name);
    Page<Department> findByNameContaining(String name, Pageable pageable);
    Page<Department> findByStatus(Boolean status, Pageable pageable);
} 